package com.dominator.utils.system;

import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

@Component
@Lazy(false)
public class Constants {
    public static PropertiesLoader propertiesLoader = new PropertiesLoader("sysconfig.properties");
    public static final String DES3_PASSWORD = "1qaz2wsx"; // aes加密密码
    public static final String DES3_ENCODE = "utf-8";

    /**
     * token校验
     */
    public static final boolean TOKEN_CHECK = true;

    public static final int DAY = 60 * 60 * 24;


    /**
     * token过期时间 （单位秒）int
     */
    public static final int TOKEN_TIMES_INT = 60 * 60 * 24 * 5;

    /**
     * SMS过期时间 （单位秒）int
     */
    public static final int SMS_TIMES_INT = 60 * 5;

    /**
     * 一天
     */
    public static final int TIMES_DAY = 60 * 60 * 24;

    /**
     * 一个月
     */
    public static final int TIMES_MONTH = 60 * 60 * 24 * 30;


    /**
     * 图像验证码过期时间 （单位秒）int
     */
    public static final int PIC_TIMES_INT = 60 * 2;

    /**
     * 商户签名时间（毫秒）
     */
    public static final long MERCHANT_TOKEN_TIME = 1000 * 60 * 30;


}
